/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package logica;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Laura
 */
public class FabricaEMF {

    private static FabricaEMF inst=null;

    private static  EntityManagerFactory emf;


    public static FabricaEMF getIntancia(){
    if(inst==null){
    inst=new FabricaEMF();
     emf=Persistence.createEntityManagerFactory("InventariosPU");


    }
    return inst;
    }

    public EntityManagerFactory getEMF(){
        return emf;
        }

}
